SlkStore.SetAssignmentProperties Method

Updates general information about an assignment.

Parent Type: SlkStore

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public void SetAssignmentProperties (
AssignmentItemIdentifier assignmentId,
AssignmentProperties newProperties

)

Parameters

assignmentId

The AssignmentItemIdentifier of the assignment to store information about.

newProperties

An AssignmentProperties object containing updated information about the assignment. The following properties of AssignmentProperties are not updatable and are ignored: SPSiteGuid, SPWebGuid, CreatedBy, DateCreated. Also, within AssignmentProperties.Instructors and AssignmentProperties.Learners, all properties except UserId are ignored.

Exceptions
Exception type Condition
SafeToDisplayException

An error occurred that can be displayed to a browser user. Possible cause: the user isn't an instructor on the assignment.

Remarks

Security:  This operation fails if the current user isn't an instructor on the assignment.